package com.kangdi.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kangdi.server.pojo.MenuRole;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * InnoDB free: 7168 kB; (`mid`) REFER `yeb/t_menu`(`id`); (`rid`) REFER `yeb/t_rol Mapper 接口
 * </p>
 *
 * @author kangdi
 * @since 2022-10-04
 */
public interface MenuRoleMapper extends BaseMapper<MenuRole> {
    /**
     * 根据用户id保存菜单id
     * @param rid
     * @param mids
     * @return
     */
    Integer saveMidByRid(@Param("rid") Integer rid, @Param("mids") Integer[] mids);
}
